algorithm and implementation

welcome to shbcf.ru